#ifndef WIFI_STA_CONNECT_H
#define WIFI_STA_CONNECT_H

#include "lwip/nettool/misc.h"
#include "lwip/ip4_addr.h"
#include "lwip/netif.h"
#include "lwip/netifapi.h"
#include "lwip/sockets.h"

#include "wifi_hotspot.h"
#include "wifi_hotspot_config.h"
#include "td_base.h"
#include "td_type.h"

// Event type
#define WiFi_STA_EVENT_STATE_CHANGE 0x01    // WiFi STA state change
// #define WiFi_STA_EVENT_RECEIVE_DATA 0x02

typedef void (*wifi_sta_event_cb_t)(uint8_t event, uint8_t *data, uint16_t data_len);

td_s32 wifi_sta_init(char *ssid, char *password, wifi_sta_event_cb_t event_cb);

#endif // !WIFI_STA_CONNECT_H